//
//  Plant.m
//  植物管理
//
//  Created by liujianlong on 2022/11/21.
//

#import "Plant.h"

@implementation Plant
+ (NSArray *)bg_unionPrimaryKeys
{
    return @[@"name",@"account"];
}
- (NSInteger)stamp{
    if (!_stamp) {
        _stamp = [[NSDate currentTimeStamp:@"yyyy/MM/dd HH:mm:ss"] integerValue];
    }
    return _stamp;
}
- (NSString *)year{
    if (!_year) {
        _year = [NSDate transToDate:@"yyyy" :self.stamp];
    }
    return _year;
}
-(NSString *)month{
    if (!_month) {
        _month = [NSDate transToDate:@"MM" :self.stamp];
    }
    return _month;
}
-(NSString *)day{
    if (!_day) {
        _day = [NSDate transToDate:@"dd" :self.stamp];
    }
    return _day;
}
-(NSMutableArray *)imgs{
    if (!_imgs) {
        _imgs = [NSMutableArray array];
    }
    return _imgs;
}
- (CGFloat)font{
    if (!_font) {
        _font = 14;
    }
    return _font;
}
-(NSString *)content{
    if (!_content) {
        _content = @"";
    }
    return _content;
}
- (NSString *)textColor{
    if (!_textColor) {
        _textColor = @"#333333";
    }
    return _textColor;
}
- (NSString *)bgColor{
    if (!_bgColor) {
        _bgColor = @"#FFFFFF";
    }
    return _bgColor;
}
- (NSString *)fileName{
    if (!_fileName) {
        _fileName = @"";
    }
    return _fileName;
}
@end
